package org.example.seata.bs.api.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单支付信息
 *
 * @author hzq
 * @date 2021/11/22 16:58
 */
@Data
@TableName("`order_pay_info`")
@Accessors(chain = true)
public class OrderPayInfo extends Model<OrderPayInfo> {

    @TableId(type = IdType.AUTO)
    private Integer orderPayInfoId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 支付总金额
     */
    private BigDecimal payTotalPrice;

    /**
     * 支付状态 0失败 1成功
     */
    private Integer payStatus;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 回调时间
     */
    private LocalDateTime callbackTime;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;
}
